package com.example.wananrdroid.presenter;

import com.example.wananrdroid.base.BasePresenter;
import com.example.wananrdroid.bean.GuangBean;
import com.example.wananrdroid.model.GuangCallBack;
import com.example.wananrdroid.model.GuangModel;
import com.example.wananrdroid.view.GuangView;

public class GuangPresnter extends BasePresenter<GuangView> implements GuangCallBack {
    private GuangModel model;
    @Override
    protected void initModel() {
        this.model=new GuangModel();
        addModel(model);
    }
    public void guangdata(){
        model.guangdata(this);
    }
    @Override
    public void onSuccess(GuangBean guangdata) {
        mview.onSuccess(guangdata);
    }

    @Override
    public void onFali(String error) {
        mview.onFali(error);
    }
}
